<template>
  <div class="sreach-histroy">
    <van-cell-group>
      <van-cell title="搜索历史">
        <div slot="default" class="custom-title">
          <div>
            <span @click="test">全部删除</span>
            <span>关闭</span>
          </div>
          <van-icon name="delete" />
        </div>
      </van-cell>
      <van-cell :title="text" v-for="(text, i) in searchTextList" :key="i">
        <template #right-icon>
          <van-icon name="cross" class="search-icon" />
        </template>
      </van-cell>
    </van-cell-group>
  </div>
</template>

<script>
export default {
  name: 'SreachHistroy',
  props: {
    searchTextList: {
      type: Array
    },
    searchText: {
      type: String
    }
  },
  data() {
    return {
      // 删除 状态 的 选择
      isdele: true
    }
  },
  created() {},
  methods: {
    test() {
      console.log(this.searchTextList)
    }
  },
  computed: {},
  watch: {},
  components: {}
}
</script>

<style lang="less" scoped>
</style>
